<!DOCTYPE html>
<html lang="zh-cn">
<head>
<include file="Widget/head" />
<link rel="stylesheet" type="text/css" href="__CSS__/Home/defaut.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/distance.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/button.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/font.css">
<link href="__CSS__/Home/global.css" rel="stylesheet" type="text/css">
<link href="__CSS__/Home/member.css" rel="stylesheet" type="text/css">
</head>

<body style="zoom: 1;">
{:W('Page/menu')}

<div class="contt">
	<div class="redbg">
		<div class="regtop">花10秒注册~ 加入{$Think.config.WEB_SITE_TITLE}！&nbsp;<span class="lddlu">已有账号？ <a href="{:U('Index/index')}">立即登录</a></span></div>
        <form class="regform" id="regform" action="{:U('Index/register')}" method="post" onsubmit="return checkform(this);">
            <div class="regtb">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody><tr>
                        <td width="6%"><label for="userName">用户名:</label></td>
                        <td width="94%"><input type="text" id="userName" name="account" placeholder="请输入会员名4-16字符" class="required" maxlength="16"><strong class="high"> *</strong></td>
                    </tr>
                    <tr>
                        <td><label for="userPwd">密码</label></td>
                        <td><input type="password" id="userPwd" name="password" placeholder="请输入登陆密码" class="required"><strong class="high"> *</strong></td>
                    </tr>
                    <tr>
                        <td><label for="qq">QQ</label></td>
                        <td>
                            <input type="text" name="qq" id="qq" placeholder="请输入QQ号" class="required">
                            <span style="margin-left: 10px;">邮箱：</span><input type="text" name="email" id="email" style="background: none; border: none; padding-left: 0px;">
                            <script>
                                $("#qq").keyup(function () {
                                    // 这里可以写些验证代码
                                    var _qq = $("#qq").val();
                                    var _email = _qq + "@qq.com";
                                    $("#email").val(_email);
                                });
                            </script>
                        <strong class="high"> *</strong></td>
                    </tr>
                    <tr>
                        <td><label for="tel">手机</label></td>
                        <td><input type="text" name="mobile" id="tel" maxlength="11" placeholder="请输入手机号码" class="required">(*确保手机号码正确，否则接收不到验证码，无法通过审核！)<strong class="high"> *</strong></td>
                    </tr>
                    <tr>
                        <td><label for="userType">选择身份</label></td>
                        <td>
                            <input type="radio" value="2" id="userType0" name="cate" checked="checked">刷手&nbsp;&nbsp;&nbsp;
                            <input type="radio" value="1" id="userType1" name="cate">商家
                            <input type="hidden" id="userType" class="required">
                        <strong class="high"> *</strong></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" value="下一步" id="send"></td>
                    </tr>
                </tbody></table>
            </div>
        </form>
    </div>
</div>
<script>
//验证表单信息
function checkform(){
	if($("#userName").val() == ""){	alert("请输入用户名！");return false;	
	}else{
		var value = $("#userName").val();
		var preg = new RegExp(/^\w{4,16}$/);
		if(false == preg.test(value)){	alert("请输入4-16字符"); return false;	}
	}
	if($("#userPwd").val() == ""){	alert("请输入密码！");return false;	}
	if($("#qq").val() == ""){	alert("请输入qq号码！");return false;	}
	if($("#tel").val() == ""){	alert("请输入手机号码！");return false;	
	}else{
		var value = $("#tel").val();
		var preg = new RegExp(/^1\d{10}$/);
		if(false == preg.test(value)){	alert("请输入正确的手机号码！"); return false;	}
	}
}
</script>
{:W('Page/foot')}
</body>
</html>